Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort on unknown eosevm version #120

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

elmato
Copy link
Contributor

@elmato elmato commented Jan 18, 2024

No description provided.

@elmato elmato linked an issue Jan 18, 2024 that may be closed by this pull request
@elmato elmato requested a review from yarkinwho January 18, 2024 05:38
#else
silkworm::abort_due_to_assertion_failure(msg.c_str(), __FILE__, __LINE__);
#endif
return static_cast<evmc_revision>(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider encapsulating that into a macro, something like EOS_ASSERT(msg) in a header file and then you can use it elsewhere as needed.

eosevm/assert.hpp Show resolved Hide resolved
@elmato elmato merged commit eb305ec into master Jan 19, 2024
5 checks passed
@elmato elmato deleted the elmato/abort-on-unknown-eosevm-version branch January 19, 2024 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abort on unknown EOSEVM version
3 participants